import request from '@/utils/request'

export const getImgs = (params) => {
  return request({
    method: 'post',
    url: '/api/img/getList',
    data: params
  })
}

export const addImgs = (params) => {
  return request({
    method: 'post',
    url: '/api/img/add',
    data: params
  })
}

export const deleteImgs = (params) => {
  return request({
    method: 'delete',
    url: '/api/img/delete',
    data: params
  })
}

export const editImgs = (params) => {
  return request({
    method: 'put',
    url: '/api/img/edit',
    data: params
  })
}

export const uploadImg = (params) => {
  return request({
    method: 'put',
    url: '/api/public/upload',
    data: params
  })
}